import {NgModule} from '@angular/core';
import {HomePageComponent} from './home-page.component';
import {SwiperModule} from 'ngx-swiper-wrapper';
import {SWIPER_CONFIG} from 'ngx-swiper-wrapper';
import {SwiperConfigInterface} from 'ngx-swiper-wrapper';
import {RouterModule} from '@angular/router';
import {SharedModule} from '@kylin/shared';

const DEFAULT_SWIPER_CONFIG: SwiperConfigInterface = {
    direction: 'horizontal',
    slidesPerView: 'auto'
};

@NgModule({
    declarations: [HomePageComponent],
    imports: [
        SharedModule,
        SwiperModule,
        RouterModule.forChild([
            {
                path: '',
                component: HomePageComponent
            }
        ])
    ],
    providers: [
        {
            provide: SWIPER_CONFIG,
            useValue: DEFAULT_SWIPER_CONFIG
        }
    ]
})
export class HomePageModule {
}
